package com.demo.rabbit.costomer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2020/7/13.
 */
@Component
@RabbitListener(queues = "demo_y")
public class Coustomer3 {

    @RabbitHandler
    public void getMsg(String msg){
        System.out.println("demo_y"+msg);
    }
}
